package com.im.service.group.model.req;

import com.im.common.model.RequestBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("创建群请求参数")
public class ImportGroupReq extends RequestBase {

    @ApiModelProperty(value = "群id")
    private String groupId;

    @ApiModelProperty(value = "群主id")
    private String ownerId;

    @ApiModelProperty(value = "群类型，1：私有群，2：公开群")
    private Integer groupType;

    @ApiModelProperty(value = "群名称", required = true)
    @NotBlank(message = "群名称不能为空")
    private String groupName;

    @ApiModelProperty(value = "是否全员禁言，0：不禁言，1：全员禁言")
    private Integer mute;

    @ApiModelProperty(value = "加入群权限，0：所有人可以加入，1：群成员可以拉人，2：群管理员或群组可以拉人")
    private Integer applyJoinType;

    @ApiModelProperty(value = "群简介")
    private String introduction;

    @ApiModelProperty(value = "群公告")
    private String notification;

    @ApiModelProperty(value = "群头像")
    private String photo;

    @ApiModelProperty(value = "群最大成员数")
    private Integer MaxMemberCount;

    @ApiModelProperty(value = "群创建时间")
    private Long createTime;

    @ApiModelProperty(value = "额外信息")
    private String extra;

}

